package com.weayer.controller;

import com.weayer.dto.ResponseResult;
import com.weayer.response.TrackResponse;
import com.weayer.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

/**
 * @description: Service服务 - 地图 - 轨迹管理Controller
 * @author: Weayer
 **/
@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    TrackService trackService;

    @PostMapping("/add")
    public ResponseResult<TrackResponse> add(@PathParam("tid") String tid){
        return trackService.add(tid);
    }
}
